home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / rockpaper.swf / scripts / DefineSprite_141 / frame_128 / DoAction.as
Text File  |  2007-09-27  |  493b  |  22 lines

  1. var theThrow;
  2. if(this.isPlayer)
  3. {
  4.    if(appRoot.interface_mc.currentSelection == undefined)
  5.    {
  6.       theThrow = "r";
  7.    }
  8.    else
  9.    {
  10.       theThrow = appRoot.interface_mc.currentSelection;
  11.    }
  12.    trace("the player\'s throw: " + theThrow);
  13.    appRoot.session.currentThrow.playerThrow = theThrow;
  14.    hand_mc.gotoAndPlay(theThrow);
  15. }
  16. else
  17. {
  18.    theThrow = appRoot.cpuChooseThrow();
  19.    hand_mc.gotoAndPlay(theThrow);
  20.    appRoot.session.currentThrow.cpuThrow = theThrow;
  21. }
  22.